package com.situ.company.web220111.department.dao;

import com.situ.company.web220111.department.model.DepartmentModel;

import java.util.List;

public interface IDepartmentDao {

    /**
     * 添加记录
     * @param model
     * @return String
     */
    String insert(DepartmentModel model);

    /**
     * 根据主键删除
     * @param model
     * @return String
     */
    String delete(DepartmentModel model);

    /**
     * 根据主键修改字段
     * @param model
     * @return String
     */
    String updateAll(DepartmentModel model);

    /**
     * 根据主键修改部分字段
     * @param model
     * @return
     */
    String updateActive(DepartmentModel model);

    /**
     * 根据多条件模糊查询记录
     * @param model
     * @return List<DepartmentModel>
     */
    List<DepartmentModel> selectList(DepartmentModel model);

    /**
     * 根据主键查询一条记录
     * @param model
     * @return DepartmentModel
     */
    DepartmentModel selectModel(DepartmentModel model);

    /**
     * 根据主键查询得到记录条数
     * @param model
     * @return
     */
    Integer selectCount(DepartmentModel model);
}
